package com.cxf.ws.impl;

import javax.jws.WebService;

import org.springframework.stereotype.Component;

import com.cxf.ws.SimpleTest;
import com.cxf.ws.clien.AutoPublish;

@WebService(targetNamespace = "http://impl.ws.cxf.com/",endpointInterface = "com.cxf.ws.SimpleTest", serviceName = "SimpleTest")
@AutoPublish(publishAddr = "test")
@Component
public class SimpleTestImpl implements SimpleTest{
	@Override
	public String getTestStr(String name, int age) {
		String str = String.format("我的名字是：%s，年纪是：%d。", name, age);
		return str;
	}

}
